package com.api.user.dao;

import com.api.core.ApiMapper;
import com.api.user.model.GameProfile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;
import java.util.Map;

@Mapper
public interface GameProfileMapper extends ApiMapper<GameProfile> {
    List<Map<String, Object>> list(@Param("params") Map<String, Object> params,@Param("order")  Map<String, Object> orderParams);

    GameProfile findByUserAndGame(@Param("gameId") Long gameId, @Param("userId") Long userId);

    List<GameProfile> findByUserId(Long id);

    int findByGameAndGmId(Long gameId, String igid, String ign);
}